package com.kadron.paging;

public class ItemsHolder extends AbstractKRowParent {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2158376004452012829L;

	public ItemsHolder(ModelContainer dataModel, KItemRowService kItemRowService) {
		super(dataModel,kItemRowService);
		long count = kItemRowService.getCount(this);
		if (count > 0) {			
			kItemRowService.getModels(this, 0, dataModel.getRecords()); //Initial search
		}
	}

	@Override
	public long getId() {
		throw new UnsupportedOperationException();
	}

}
